﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using YasharEl.Infrastructure.EntityModel;

namespace YasharEl.Infrastructure.Core.Applications
{
    [Serializable]
    public class ApplicationNotFoundException : DomainModelException
    {
        private readonly long _applicationId;

        public long RequestedApplicationId
        {
            get
            {
                return _applicationId;
            }
        }

        public ApplicationNotFoundException(long applicationId)
            : base(string.Format("Application with identity number {0} not found.", applicationId))
        {
            _applicationId = applicationId;
        }

        protected ApplicationNotFoundException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}
